<extend name="public:base" />

<block name="left">
	<div class="mark_bar cl">
		<a href="javascript:history.back(-1);" class="goback fl"><i class="iconfont">&#xe600;</i></a>
		<p>修改绑定手机</p>
	</div>
</block>

<block name="main">
	<div class="content">
		<form action="{:url('uc/safe/change_phone')}" method="post" id="form">
			<input type="hidden" id="sendcodeurl" value="{:url('/uc/safe/send_sms')}" />
			<div class="form" id="reg_step">
				<div class="input_form">
					<div class="input_form_bar">
						<p>新手机号码</p>
						<input name="phone" id="phone" size="11" maxlength="11" type="tel" autocomplete="off" />
						<div class="cl"></div>
					</div>
					<div class="input_form_bar">
						<p>图形验证码</p>
						<input name="verify" id="verify" class="input_t" value="" size="4" maxlength="4" autocomplete="off" type="text" />
						<img src="{:url('uc/sign/verify')}" class="verifyimg" onclick="refreshEcode()" />
						<div class="cl"></div>
					</div>
					<div class="input_form_bar">
						<p>短信验证码</p>
						<input name="scode" id="scode" class="input_t" value="" size="6" maxlength="6" autocomplete="off" type="number" />
						<a href="javascript:void(0);" class="send_btm" id="btnSendMsg" onclick="isSendbtm();">获取验证码</a>
						<div class="cl"></div>
					</div>
				</div>
				<div class="wrap">
					<input class="submit" type="submit" value="确定" />
				</div>
			</div>
		</form>
	</div>
</block>

<block name="menu"></block>

<block name="js">
	<script type="text/javascript" src="__JS__/check.js?v={:config('app_ver')}"></script>
	<script type="text/javascript">
		$("#form").submit(function() {
			if(!checkPhone()) return false;
			if(!checkVerify()) return false;
			if(!checkPhonecode()) return false;
			return ajax_post($(this));
		});
	</script>
</block>